package com.topvision.service.impl.glass;

import com.topvision.mapper.glass.EquipmentMapper;
import com.topvision.model.glass.Equipment;
import com.topvision.service.glass.EquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("equipmentService")
public class EquipmentServiceImpl implements EquipmentService {
    @Autowired
    private EquipmentMapper equipmentMapper;

    @Override
    public Equipment queryObject(Integer id) {
        return equipmentMapper.queryObject(id);
    }

    @Override
    public List<Equipment> queryList(Map<String, Object> map) {
        return equipmentMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return equipmentMapper.queryTotal(map);
    }

    @Override
    public void save(Equipment equipment) {
        equipmentMapper.save(equipment);
    }

    @Override
    public void update(Equipment equipment) {
        equipmentMapper.update(equipment);
    }

    @Override
    public void delete(Integer id) {
        equipmentMapper.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids) {
        equipmentMapper.deleteBatch(ids);
    }

    @Override
    public Equipment queryByGuid(String guid) {
        return equipmentMapper.queryByGuid(guid);
    }

    @Override
    public List<Equipment> queryOnLineList(Map<String, Object> map) {
        return equipmentMapper.queryOnLineList(map);
    }


}
